package com.jsh.erp.utils;

public enum ErpInfo {
    //通过构造传递参数
    OK(200, "操作成功"),
    USER_LOGIN_FAiLED(404, "用户登录失败"),
    VERIFICATION_CODE_FAILED(405, "获取验证码失败"),

    PASSWORD_UPDATE_FAILED(406, "更新密码失败"),
    PASSWORD_RESET_FAILED(406, "更新密码失败"),
    ACQUISITION_FAILED(407, "获取数据失败"),

    EXIT_FAILED(406, "退出失败"),

    ERROR(500, "操作失败");

    public final int code;
    public final String name;

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    /**
     * 定义枚举构造函数
     */
    ErpInfo(int code, String name) {
        this.code = code;
        this.name = name;
    }
}
